<template>

  <Markdown v-if="content && content.length > 0" class="md-content" :isAvoidXss="false" :content="content">
  </Markdown>
  <div v-else>
    <el-empty description="内容为空"></el-empty>
  </div>

</template>

<script>
import Markdown from "@/components/oj/common/Markdown";

export default {
  name: 'MdPreview',
  components: {
    Markdown
  },
  props: {
    content: {
      type: String,
      required: true
    }
  },
  data() {
    return {

    }
  },
  methods: {

  }
}
</script>
